package com.zboot.zbootadmin.common.domain;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @Classname ResponseData
 * @Description 返回统一结果集，返回统一的数据
 * @Date 2019/5/3 10:04
 * @Created by zyt
 */

@Setter
@Getter
public class ResponseData {
    private int code;
    private String message;
    private Object data;
    private Date updateTime;

    public ResponseData() {

    }

    public ResponseData(int code, String message, Object data, Date updateTime) {
        this.code = code;
        this.message = message;
        this.data = data;
        this.updateTime = updateTime;
    }

    public ResponseData(int code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public ResponseData(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public ResponseData(int code, Object data) {
        this.code = code;
        this.data = data;
    }
}
